<h2 class="contentTitle">League Table Setup</h2>
<div class="contentBody">
<fieldset>
<table class="contentTable">
<tr>
<td class="label">Competition:</td>
<td><input type=hidden name="FK_COMPETITION_ID" value="<TMPL_VAR NAME=COMPETITION_PK_OBJECT_ID>">
<a href="javascript:editObject('<TMPL_VAR NAME=COMPETITION_PK_OBJECT_ID>','COMPETITION')"><TMPL_VAR NAME=COMPETITION_COMPETITION_NAME></a>
</td>
</tr>
<tr>
<td class="label">Table Name:</td>
<td><input type=text name=LTABLE_NAME value="<TMPL_VAR NAME=LTABLE_NAME>" size=80>
<input type=hidden name="FK_LTABLE_ID" value="<TMPL_VAR NAME=PK_OBJECT_ID>">
</td>
</tr>
<tr>
<td class="label">Description:</td>
<td><textarea name=LTABLE_DESCRIPTION rows=5 cols=60><TMPL_VAR NAME=LTABLE_DESCRIPTION></textarea></td>
</tr>
<tr>
<td class="label">URL:</td>
<td><input type=text name=LTABLE_URL value="<TMPL_VAR NAME=LTABLE_URL>" size=80><br>
<span class=instructions>URL to scan for table rows</span></td>
</tr>
<tr>
<td class="label">Pattern:</td>
<td><input type=text name=LTABLE_PATTERN value="<TMPL_VAR NAME=LTABLE_PATTERN>" size=80><br>
<span class=instructions>Regular expression to match rows.</span></td></tr>
</table>
<div class="submit">
<input type=button class="button" onClick="updateObject('LTABLE','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>');" value="Update &raquo;">
</div>
</fieldset>
</div>

<h3 class="contentSubTitle">Dated Tables</h3>

<div class="contentBody">
<fieldset>
<table class="contentTable">
<TMPL_VAR NAME=DLTABLES_LIST>
</table>

<div class="submit">
<input type=button class="button" onClick="addObject('DLTABLE','<TMPL_VAR NAME=PK_OBJECT_ID>');" value="Add Dated Table &raquo;">
</div>
</fieldset>
</div>